package com.ld.poetry.handle;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class BaseException extends RuntimeException{
    private Integer code;

    public BaseException(Integer code,String msg){
        super(msg);
        this.code = code;
    }

    public BaseException(String msg){
        super(msg);
        this.code = -1;
    }
}
